namespace Beauty.Net.JsonWebToken.Core;

/// <summary>
/// JWT配置选项
/// </summary>
public class JwtOptions
{
    /// <summary>
    /// 密钥
    /// </summary>
    public string SecretKey { get; set; } = string.Empty;
    
    /// <summary>
    /// 颁发者
    /// </summary>
    public string Issuer { get; set; } = string.Empty;
    
    /// <summary>
    /// 接收者
    /// </summary>
    public string Audience { get; set; } = string.Empty;
    
    /// <summary>
    /// 访问令牌过期时间（分钟）
    /// </summary>
    public int AccessTokenExpirationMinutes { get; set; } = 30;
    
    /// <summary>
    /// 刷新令牌过期时间（小时）
    /// </summary>
    public int RefreshTokenExpirationHours { get; set; } = 24;
    
    /// <summary>
    /// 是否启用Token验证
    /// </summary>
    public bool ValidateToken { get; set; } = true;
}